<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.dataTables.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/ZeroClipboard.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/TableTools.js" type="text/javascript"></script>

<style type="text/css" title="currentStyle">
            @import "<?php echo base_url() ?>commons/tablas/media/css/demo_page.css";
            @import "<?php echo base_url() ?>commons/tablas/media/css/demo_table.css";
                        @import "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/css/TableTools.css";
        </style>
<script type="text/javascript">
    var t=jQuery.noConflict();
            t(document).ready(function() {
                t('#example').dataTable( {
                    "sPaginationType": "full_numbers",
                  "sDom": 'T C lfrtip', 
                    "oTableTools": { 
                    "sSwfPath": "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/swf/copy_csv_xls_pdf.swf", 
                    "aButtons": [ 
                    "xls",], 
                    },
               } );
    } );
</script>


<form class="well form-horizontal span8" action="<?php echo base_url() . "admin.php/asigna_arrastre/procesar" ?>" method="post">
    <legend>CERTIFICADOS DE PROMOCION Y EXPEDIENTES</legend>


    <div class="control-group">
        <label class="control-label" for="select03">CARRERAS</label>
        <div class="controls ">
            <select name="ide_car" class="span3" autofocus
                    ONCHANGE="javascript:enviar(this.options[this.selectedIndex].value, '<?php echo (base_url()) . "admin.php/promocion/inicio" ?>');">
                        <?php
                        if ($ide_car == -1)
                            echo ("<option value='-1' selected>Seleccionar Carrera</option>");
                        foreach ($carrera as $i => $car) {
                            echo ("<option value='" . $car["ide_car"] . "'");
                            echo (($ide_car == $car["ide_car"] ? " selected" : "") . ">");
                            echo ($car["nombre_car"] . "</option>");
                        }
                        ?>
            </select>

        </div>
    </div>

    <div class="control-group">
        <label class="control-label" for="select03">Lista de Pensums</label>
        <div class="controls ">
            <select id="select02" name="ide_pen" class="span3" autofocus
                    ONCHANGE="javascript:enviar1('<?php echo (base_url()) . "admin.php/promocion/inicio" ?>',
                                    '<?php echo $ide_car ?>', this.options[this.selectedIndex].value);">
                <?php
                if ($ide_pen == -1)
                    echo ("<option value='-1' selected>Seleccionar Pensum</option>");

                foreach ($pensum as $i => $pen) {

                    echo ("<option value='" . $pen["ide_pen"] . "'");
                    echo (($ide_pen == $pen["ide_pen"] ? " selected" : "") . ">");
                    echo ($pen["descripcion_pen"] . "-" . $pen["estado_pen"] . "</option>");
                }
                ?>

            </select>
        </div>
    </div>






    <div id="tablamatriculai" >
        <table id="example" class="table table-bordered table-striped table-condensed">
            
            <thead>
                <tr>
                    <th>Nro</th>
                    <th>CEDULA</th>
                    <th>APELLIDOS</th>
                    <th>NOMBRES</th>
                    <th>EXPEDIENTE</th>
                </tr>
            </thead>
            <tbody>
                <?php
                $fila=1;
                //print_r($estudiantes);
                
                if (!empty($estudiantes)) {
                    foreach ($estudiantes as $i => $repor) {
                        ?>
                        <tr>
                            <td ><?php echo $fila; ?>
                                </td>
                            <td><?php echo $repor['cedula_pers'] ?></td>
                            <td><?php echo $repor['apellido_pers'] ?></td>
                            <td><?php echo $repor['nombre_pers'] ?></td>
                            <td> <a href='<?php echo (base_url() . "admin.php/promocion/presenta/" . $repor['ide_pers']."/".$ide_car.'/'.$ide_pen); ?>'>
                                <i class="icon-folder-open"></i> Ver</a></td>
                        </tr>
                        <?php
                        $fila+=1;
                    }
                }
                ?>
            </tbody>
        </table>  
    </div>


</form>




